/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package risk.game.entity.map;

import java.util.ArrayList;
import java.util.List;

import javax.swing.ImageIcon;

import risk.game.entity.player.Player;
import risk.game.entity.unit.Army;
import risk.game.entity.unit.Miniature;

public class Land extends Region{
	private static int landId = 0;
	private Continent continent;
    private List<Land> borderLandList;
    private Army army;

    public Land (String name,ImageIcon image,Player owner,Army army,List<Land> borderLandList){
    	super(Region.TYPE_LAND,name,image,owner);
        this.id = landId++;
    	this.army = army;
    	this.borderLandList = borderLandList;
    }

	public static int getLandId() {
		return landId;
	}

	public static void setLandId(int landId) {
		Land.landId = landId;
	}

	public Continent getContinent() {
		return continent;
	}

	public void setContinent(Continent continent) {
		this.continent = continent;
	}

	public List<Land> getBorderLandList() {
		return borderLandList;
	}

	public void setBorderLandList(List<Land> borderLandList) {
		this.borderLandList = borderLandList;
	}

	public Army getArmy() {
		return army;
	}

	public void setArmy(Army army) {
		this.army = army;
	}
    
    public void addBorderLand(Land borderLand){
    	if(borderLandList == null)
    		borderLandList = new ArrayList<Land>();
    	borderLandList.add(borderLand);
    }

}
